 {extend name="Master/base" /} {block name="title"}后台主页{/block} {block name="main"}
<style>
    ul li {
        list-style: none;
    }
</style>
<!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        新闻管理
    </h1>

</section>

<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box-tools">
                <div class="input-group input-group-sm" style="width: 150px;">
                    <a href="{:url('/Index/Menu/add')}" class="btn btn-block btn-info">添加菜单</a>
                </div>
            </div>
            <div class="box">

                <div class="box-header">
                    <h3 class="box-title">菜单列表</h3>

                    <div class="box-tools">

                    </div>
                </div>
                <!-- /.box-header -->
                {volist name="menu_tree" id="vo" }
                <div class="col-md-3">
                    <div class="box box-warning">
                        <div class="box-header with-border">
                            <h3 class="box-title">{$vo.title}</h3>

                            <div class="box-tools pull-right">
                                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                          </button>
                            </div>
                            <!-- /.box-tools -->
                        </div>
                        <!-- /.box-header -->

                        {if condition="array_key_exists('_child',$vo)"}
                        <div class="box-body">
                            <ul>
                                {volist name="vo['_child']" id="sub"}
                                <li>
                                    &nbsp; &nbsp; &nbsp; &nbsp; <span>{$sub.title}</span>
                                </li>
                                <!--1111-->
                                {if condition="array_key_exists('_child',$sub)"} {volist name="sub['_child']" id="sub2"}
                                <li>
                                    &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <span>{$sub2.title}</span>
                                </li>
                                {/volist} {/if} {/volist}
                            </ul>
                        </div>
                        {/if}
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                {/volist}
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
    </div>

</section>
{/block}